package yns.springboot.common.sample.utility.transform;

import org.springframework.beans.BeanUtils;
import org.springframework.stereotype.Component;

import yns.springboot.common.sample.base.bean.BaseBean;

@Component
public class TransformBean<S extends BaseBean, T extends BaseBean> {

	public T parseObject(S source, T target) {

		BeanUtils.copyProperties(source, target);

		return target;
	}
}
